// import state from './state'

let methods = {
  add: (state, action) => {
    state.num++
    return state
  },
  addNum: (state, action) => {
    state.num += action.num
    return state
  },
  setQuetion: (state, action) => {
    state.quetionList = action.content
    return state
  },
  // 生涯模式题目
  setBareer: (state, action) => {
    state.bareerQuestionList = action.content
    // console.log(state)
    return state // 一定要return
  },
  addBareer: (state, action) => {
    state.bareerQuestionList = [...state.bareerQuestionList, ...action.content]
    return state
  },

  setTypeQuestionList: (state, action) => {
    state.typeQuestionList = [...state.typeQuestionList, ...action.content]
    return state
  },
}

export default methods
